# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=yelp-tools
pkgver=3.32.2
pkgrel=0
pkgdesc="Collection of utilities to help create documentation"
url="https://wiki.gnome.org/Apps/Yelp/Tools"
arch="noarch"
license="GPL-2.0-or-later"
makedepends="autoconf-archive automake gawk yelp-xsl itstool libxml2-utils libxslt"
options="!check" # no tests
source="https://download.gnome.org/sources/yelp-tools/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

prepare() {
	default_prepare
	autoreconf --force --install --verbose
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c9383426b854ae46ff4587bef07955541de3026f845025f9e99ba095cce11ff307e23d00d07a2da8763bcb6f9f061fc610351170e2abd99b5669912463729a85  yelp-tools-3.32.2.tar.xz"
